<?php

interface Application_Model_dataDAOInf_SanPhamDAOInf {
	public function insertSanPham($tenSanPham, $maSanPham, $idDanhMuc, $giaGoc, $giaBan, $moTa, $chucNang, $chucNangKhac, $anh,$tinhTrang);
	public function loadSanPham($id);
	public function deleteSanPham($id);
	
	/**
	 * @param int $limit
	 * @param int $page
	 * @param string $tenSanPham
	 * @param string $maDanhMuc
	 * @param int $giaBan
	 * @param string $maChucNang
	 * @return array list Application_Model_bean_SanPham
	 */
	public function loadListSanPham($limit, $page, $tenSanPham, $maDanhMuc, $giaBan, $maChucNang);
	
	/**
	 * @param int $limit
	 * @param int $page
	 * @param string $tenSanPham
	 * @param string $maDanhMuc
	 * @param int $giaBan
	 * @param string $maChucNang
	 * @return num pages from loadListSanPham
	 */
	public function pagesNum($limit, $page, $tenSanPham, $maDanhMuc, $giaBan, $maChucNang);
	
	public function updateThongTinChung($id,$tenSanPham ,$idDanhMuc,$moTa,$tinhTrang);
}

?>